//package com.example.recordingpen_datacollection.Utils.hy;
//
//public class Main {
//
//    public static void main(String[] args) {
//        long appId = 1302736335	;
//        String secretId = "AKIDwdMp55jvkIbfU3flzxdFd2B7mBRShEH5";
//        String secretKey = "gngYBXdU9Z0DI70rRloqcssbKmy2tU4w";
//        int enableStream = 0;
//        Message[] messages = {new Message("user", "一加一等于多少")};
////        HyResponse hyresponse = new HyV2Service(appId, secretId, secretKey,"ChatStd").genHyRequest(messages, enableStream).sign("ChatStd").handle();
//        String output = "";
//        if (hyresponse != null) {
//            if (hyresponse.getError() == null) {
//                for (HyResponseChoice c : hyresponse.getChoices()) {
////                    System.out.print(c.getMessages().getContent());
//                    output += c.getMessages().getContent();
//                }
//            } else {
//                System.out.println(hyresponse.getError().toString());
//            }
//        }
//        System.out.println(output+ " ****");
//        int totalTokens = hyresponse.getUsage().getTotalTokens();
//        System.out.println(totalTokens+"+返回length");
//    }
//}
